<script type="text/javascript">
$(function(){
    $("input[name=keyword]").focus().select();
})
</script>
<!--菜单 start-->
<?php $this->load->view('defaults/common/left');?>
<!--菜单 end-->
<div id="content">
  <div class="page-header">
    <div class="container-fluid">
      <h1><?=lang('menu_cpgl')?></h1>
      <?=$this->breadcrumb->generateHTML();?>
    </div>
  </div>
  <div class="container-fluid">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="panel-title"><i class="fa fa-pencil"></i>PartsScan</h3>
      </div>
      <div class="panel-body">
        <div class="well" style="padding:0 19px;">
          <div class="row">
            <form action="<?=blang_url('products/PartsScan')?>" method="post" name="searchform" >
                <div class="col-sm-4">
                    <div class="form-group">
                        <label class="control-label">scan</label>
                        <input class="form-control" name="keyword" value="<?=$keyword?>" size="28" placeholder="orderNum/pid/sku" />
                    </div>
                </div>
                <div class="form-group col-sm-4" style="padding-top:37px;">
                    <input type="submit" class="btn btn-primary" value="<?=lang('pcm_ss')?>">  
                </div>
            </form>
            
          </div>
        </div>
        <div class="table-responsive">
            <form action="<?=blang_url('products/PartsScan/partsArrival')?>" method="post" name="searchform" >
            <table class="table table-bordered table-hover oms-table" id="ct_content1">
              <thead>
                <tr>
                  <td class="text-left"><span id="checkTextId">check all</span><input type="checkbox" onclick="checkAllorAnti('ct_content1',this.checked,'checkTextId')"></td>
                  <td class="text-left"><?= lang('order_wxdh') ?></td>
                  <td class="text-left" style="width: 20%;"><?= lang('peijian_pjmc') ?></td>
                  <td class="text-left">sku</td>
                  <td class="text-left"><?= lang('peijian_sl') ?></td>
                  <td class="text-right"><?= lang('peijian_sj') ?></td>
                  <td class="text-right"><?= lang('peijian_bj') ?></td>
                  <td class="text-right"><?= lang('order_zt') ?></td>
                  <td class="text-right">site</td>
                  <td class="text-right"><?= lang('order_rq') ?></td>
                  <td class="text-right"><?= lang('order_clr') ?></td>
                </tr>
              </thead>
              <tbody>
                <?php if($dataList): foreach ($dataList as $key=>$rs):?>
                <tr>
                    <td class="text-left"><input type="checkbox" name="partsIds[]" value="<?=$rs['id']?>"></td>
                    <td class="text-left" ><?=$rs['order_num']?></td>
                    <td class="text-left" title="<?=$rs['name']?>"><?=$rs['nameSub']?></td>
                    <td class="text-left" ><?=$rs['sku']?></td>
                    <td class="text-left" ><?=$rs['quantity']?></td>
                    <td class="text-right" ><?=$rs['price']?></td>
                    <td class="text-right" ><?=$rs['rate_price']?></td>
                    <td class="text-right" ><?=$rs['statusName']?></td>
                    <td class="text-right" ><?=$rs['point']?></td>
                    <td class="text-right" ><?=$rs['add_time']?></td>
                    <td class="text-right" ><?=$rs['add_user']?></td>
                </tr>
                <?php endforeach; else:?>
                    <tr><th colspan="11" class="emptyNumber"><?=lang('public_mygdsj')?>....</th></tr>
                <?php endif; ?>
            </tbody>
            </table>
            <?php if($show_pages):?>
                <div class="page">
                    <?=$show_pages?>
                </div>
            <?php endif;?>
            <div class="col-sm-12 form-group" style="padding-right:0;">
                <input class="btn btn-primary pull-right" style="padding:8px 45px;" type="submit" name="submits" onclick="return checkAllJudge('ct_content1','入库');" value="<?=lang('public_tj')?> " />
            </div>
            </form>
            
          </div>
      </div>
    </div>
    </div>

   
</div>
